class Person {
  public readonly _name: string;

  constructor(name: string) {
    this._name = name;
  }
}

const person = new Person("jspang");

person._name = "chj"; // 只读属性初始化之后无法修改

console.log(person._name);

// 抽象类
abstract class Girl {
  //抽象方法
  abstract skill(); //抽象类的方法没有具体的方法体
}

class Waiter extends Girl {
  skill() {
    console.log("大爷，请喝水！");
  }
}

class BaseTeacher extends Girl {
  skill() {
    console.log("大爷，来个泰式按摩吧！");
  }
}

class seniorTeacher extends Girl {
  skill() {
    console.log("大爷，来个SPA全身按摩吧！");
  }
}
